﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="MatInStockView.aspx.cs" Inherits="BySoft.Web.Site.StockManage.MatInStockView" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.Master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Src="../UserControl/SuggestTextBox2.ascx" TagName="SuggestTextBox2"
    TagPrefix="uc1" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        });
    </script>

    <h1 class="tit">库存管理 >> <a href="MatInStockList.aspx">材料入库单</a> >> 查看</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="tableStyle2">
                <table cellpadding="0" cellspacing="0" id="tBase" runat="server">
                    <tr>
                        <th class="left2">表单号码：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly" ID="lblBillID" runat="server"></asp:Label>
                        </td>
                        <th class="left2">日期：
                        </th>
                        <td class="right2">
                            <asp:Label CssClass="lblreadonly" ID="lblBillDate" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">厂商编号：
                        </th>
                        <td class="right2">
                            <asp:TextBox CssClass="lblreadonly" ID="txtSupplierID" runat="server"></asp:TextBox>
                            <asp:HiddenField ID="hdSupplierID" runat="server" />
                        </td>
                        <th class="left2">厂商名称：
                        </th>
                        <td class="right2">
                            <asp:TextBox CssClass="lblreadonly" ID="txtSupplierName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tableStyle">
                <div id="tabs">
                    <ul>
                        <li><a href="#tabs-1">明细</a></li>
                    </ul>
                    <div id="tabs-1" class="tableStyle">
                        <div style="text-align: right; width: 100%; padding-bottom: 10px">
                        </div>
                        <div class="divscroll">
                            <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                                 AutoGenerateColumns="false"
                                AllowCascade="false">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="Hidden" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden">
                                        <HeaderTemplate>
                                            BillDetailID
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblBillDetailID" runat="server" Text='<%#Eval("BillDetailID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-CssClass="Hidden" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden">
                                        <HeaderTemplate>
                                            单件毫米数
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblSingleMMNumber" runat="server" Text='<%#Eval("SingleMMNumber") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            序号
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <%# Container.DisplayIndex+1 %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-CssClass="Hidden" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden">
                                        <HeaderTemplate>
                                            PurchaseDetailID
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblPurchaseDetailID" runat="server" Text='<%#Eval("PurchaseDetailID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            采购单号
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblPurchaseID" runat="server" Text='<%#Eval("PurchaseID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            工令号
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblWorkOrderNo" runat="server" Text='<%#Eval("WorkOrderNo") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            原料编号
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaterialID" runat="server" Text='<%#Eval("MaterialID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            原料品名
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaterialName" runat="server" Text='<%#Eval("MaterialName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            规格
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblSpecifications" runat="server" Text='<%#Eval("Specifications") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            单位
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblUnit" runat="server" Text='<%#Eval("Unit") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            采购数量
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblPurchaseNum" runat="server" Text='<%#Eval("PurchaseNum") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            剩余数量
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblLeftNums" runat="server" Text='<%#Eval("LeftNums") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            单价
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblPrice" runat="server" Text='<%#Eval("Price") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            收料数量
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="txtNums" runat="server" Text='<%#Eval("Nums") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            金额
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblAmount" runat="server" Text='<%#Eval("Amount") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            毫米数
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="txtMMNumber" runat="server" Text='<%#Eval("MMNumber") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:SGridView>
                        </div>
                    </div>
                </div>
            </div>
            <div class="controlBar" align="center">
                <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
                    <tr>
                        <td colspan="4">
                            <label class="btnStylec png_bg">
                                <input type="button" id="Button2" value="返回" runat="server" onclick="window.location = 'MatInStockList.aspx'" />
                            </label>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
